Rules and daemons may be interspersed but they must follow the global declarations, fact declarations, and assignments. Daemons use syntax similar to rules. The differences are that DAEMON is used instead of RULE, and WHEN is used instead of IF. The syntax and constraints for conditional statements are the same as for rules. The THEN and ELSE statements are like those in rules except that the CONCLUDE statement is not allowed in daemons. The syntax for daemons is: